package ru.firstapp.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import ru.firstapp.model.Teacher;


public interface TeacherRepository extends JpaRepository<Teacher, Long> {
    void deleteByEmail(String email);
    Teacher findTeacherByEmail(String email);
    Teacher findTeacherById(Long id);
}
